package com.buyingtickets.entity;

/**
 * @author Hexz
 * @date 2021/6/23 23:10
 */
public class Carriage {
    private int carriageId;//车厢ID
    private Train train;//列车对象
    private CarriageInformation carInfoId;//车厢信息对象
    private int carNumber;//车厢号

    @Override
    public String toString() {
        return "Carriage{" +
                "carriageId=" + carriageId +
                ", train=" + train +
                ", carInfoId=" + carInfoId +
                ", carNumber=" + carNumber +
                '}';
    }

    public int getCarriageId() {
        return carriageId;
    }

    public void setCarriageId(int carriageId) {
        this.carriageId = carriageId;
    }

    public Train getTrain() {
        return train;
    }

    public void setTrain(Train train) {
        this.train = train;
    }

    public CarriageInformation getCarInfoId() {
        return carInfoId;
    }

    public void setCarInfoId(CarriageInformation carInfoId) {
        this.carInfoId = carInfoId;
    }

    public int getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(int carNumber) {
        this.carNumber = carNumber;
    }
}
